package com.llmcu.source.java8.java8inaction.chapter12.localdate.param;

import java.time.LocalDate;
import java.time.ZoneId;

/**
 * xxxx
 *
 * @author liuling
 * @date 2024-12-13 9:52
 */
public class ZoneIdDemo {
    public static void main(String[] args) {
        // 当前日期
        System.out.println(LocalDate.now());
        System.out.println(LocalDate.now(ZoneId.of("America/Chicago")));
        System.out.println(LocalDate.now(ZoneId.of("UTC-12")));
        System.out.println(LocalDate.now(ZoneId.of("GMT-12")));
    }
}
